﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MainLayout.Master" CodeBehind="DisplaySpeechTopic.aspx.cs" Inherits="ElevatorSpeeches.UI.WebForms.DisplaySpeechTopic" %>
<%@ Register Src="~/Controls/DisplaySpeech.ascx" TagPrefix="Elevator" TagName="DisplayTopic" %>
<%@ Register Src="~/Controls/CreateSpeech.ascx" TagPrefix="Elevator" TagName="CreateSpeech" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="Server" ID="mainContent">

    <h1><asp:Label runat="Server" ID="TitleLabel" /></h1>
    
    <asp:Repeater 
        runat="Server" 
        ID="SpeechRepeater"        
        >    
        <ItemTemplate>
            <Elevator:DisplayTopic runat="Server" FormSpeech='<%#Container.DataItem%>' />
        </ItemTemplate>
    </asp:Repeater>
    
    <asp:LoginView ID="CreateSpeechLoginView" runat="Server">          
        <LoggedInTemplate>
        <Elevator:CreateSpeech runat="Server" ID="createSpeech" />
        </LoggedInTemplate>                
    </asp:LoginView>
    
    
    
</asp:Content>